<h1>Listing scores</h1>

<table>
  <tr>
    <th>Player</th>
    <th>Game</th>
    <th>Score</th>
  </tr>

<% for score in @scores %>
  <tr>
    <td><%=h score.player %></td>
    <td><%=h score.game %></td>
    <td><%=h score.score %></td>
    <td><%= link_to 'Show', score %></td>
    <td><%= link_to 'Edit', edit_score_path(score) %></td>
    <td><%= link_to 'Destroy', score, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New score', new_score_path %>
